---
title: '@roots/bud-imagemin'
description: Image minification for bud.js projects
sidebar_label: '@roots/bud-imagemin'
tags:
  - assets
  - optimization
---

import Usage from '@site/../../@roots/bud-imagemin/docs/00-usage.md'
import ConvertingToWebp from '@site/../../@roots/bud-imagemin/docs/01-request-query-parameters.md'
import SettingEncoderOptions from '@site/../../@roots/bud-imagemin/docs/02-setting-encoder-options.md'

[@roots/bud-imagemin](/extensions/bud-imagemin) optimizes image filesizes. It works with no configuration beyond installing it
but also has a robust customization API.

The extension uses [sharp](https://sharp.pixelplumbing.com).

## Installation

```sh npm2yarn
npm install @roots/bud-imagemin --save-dev
```

## Usage

Once installed, all compatible assets will be run through the image minimizer. No further configuration is required.

<Usage />

## Manipulating images with URL parameters

<ConvertingToWebp />

## Setting encoder options

<SettingEncoderOptions />
